package com.jjb.saas.demo.infrastructure.persistence.repository.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jjb.saas.demo.infrastructure.persistence.domainobject.RoleDO;
import com.jjb.saas.demo.infrastructure.persistence.mapper.RoleMapper;
import com.jjb.saas.demo.infrastructure.persistence.repository.RoleRepository;
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
import com.jjb.saas.system.client.role.request.RolePageQry;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author tzh * @date 2022年07月08日 18:44
 */
@AllArgsConstructor
@Service
public class RoleRepositoryImpl extends BaseRepositoryImpl<RoleMapper, RoleDO> implements RoleRepository {
    private final RoleMapper roleMapper;

    @Override
    public IPage<RoleDO> rolePage(IPage iPage, RolePageQry qry) {
        return roleMapper.rolePage(iPage,qry);
    }
}
